module RongCloud
    module Apis
        module MessagePriority
            def add_chatroom_message_priority(obj_name)
                request("/chatroom/message/priority/add", objectName: obj_name)
            end

            def remove_chatroom_message_priority(obj_name)
                request("/chatroom/message/priority/remove", objectName: obj_name)
            end

            def chatroom_message_priorities
                request("/chatroom/message/priority/query")
            end

            def add_chatroom_message_whitelist(obj_names)
                request("/chatroom/whitelist/add", objectnames: obj_names)
            end

            def remove_chatroom_message_whitelist(obj_names)
                request("/chatroom/whitelist/delete", objectnames: obj_names)
            end

            # query all
            def chatroom_message_whitelist
                request("/chatroom/whitelist/query")
            end
        end
    end
end